import React from 'react';
import PropTypes from 'prop-types';
import { Modal } from 'antd';

class LoginModal extends React.PureComponent {
  static propTypes = {
    visible: PropTypes.bool.isRequired,
    onOk: PropTypes.func.isRequired,
    onCancel: PropTypes.func.isRequired,
  };

  render() {
    return (
      <Modal
        title="login modal"
        visible={this.props.visible}
        onOk={this.props.onOk}
        onCancel={this.props.onCancel}
      >
        here is login form
      </Modal>
    );
  }
}

export default LoginModal;
